import { getHeroPosi} from '@/utils/api'
import {GET_CATES} from '../actionTypes'
export function getCates(params){
    return function (dispatch) {
        getHeroPosi(params).then(res=>{
            dispatch({
                type:GET_CATES,
                payload:res
            })
        })
    }
}